import { Module } from "@nestjs/common";
import { SchoolController } from "./school.controller";
import { SchoolRPCService } from "./school.rpc.service";
import { ClientsModule } from "@nestjs/microservices";
import { SchoolClientOption } from "src/clients/school.rpc.client";
// import { SchoolService } from "./school.controller";
import { TypeOrmModule } from '@nestjs/typeorm';
import { School } from "src/models/school.model";
import { SchoolDaoService } from "src/dao/school.dao";
@Module(
  {
    controllers: [SchoolController,SchoolRPCService,],
    imports:[
      ClientsModule.register([
        SchoolClientOption
      ]),
      TypeOrmModule.forFeature([School]),
      
    ],
    providers:[SchoolDaoService]
  }
)
export class SchoolModule{ }